<!DOCTYPE html>
<html lang="zh-cn">
<head>
    <meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
    <meta http-equiv="X-UA-Compatible" content="IE=edge">
    <meta name="viewport" content="width=device-width, initial-scale=1.0, maximum-scale=1.0, user-scalable=no" />
    <meta name="renderer" content="webkit">
    <title>网站信息</title>  
    
    <link rel="stylesheet" href="__PUBLIC__/style/cssn/admin.css">
    <link rel="stylesheet" href="__PUBLIC__/style/cssn/pintuer.css">
    <link rel="stylesheet" href="__PUBLIC__/style/cssn/self.css">
    <script src="__PUBLIC__/style/jsn/jquery.js"></script>
    <script src="__PUBLIC__/style/jsn/pintuer.js"></script>

</head>
<body>
<div class="panel admin-panel">
    <div class="panel-head"><strong><span class="icon-pencil-square-o"></span> 产品信息</strong></div>
    <div class="body-content">
    <form method="post" name="form11" class="form-x" action="{:U('Admin/Product/update')}">
        <input type="hidden" name="id" value="{$data['id']}">
        <div class="big_div">
            <div class="dates">产品名称：</div>
            <div class="big_input">
                <input class="input" type="text" name="product" value="{$data['product']}" />
            </div>
            <div class="big_center"></div>
            
        </div>

        <div class="big_div">
            <div class="dates">期限：</div>
            <div class="big_input">
                <input class="input" type="text" name="dates" value="{$data['dates']}" />
            </div>
            <div class="big_center"></div>
            <div class="big_name">
                个月
            </div>
        </div>

        <div class="big_div">
            <div class="dates">收益：</div>
            <div class="big_input">
                <input class="input" type="text" name="earnings" value="{$data['earnings']}" />
            </div>
            <div class="big_center"></div>
            <div class="big_name">
                %
            </div>
        </div>

        <div class="big_div">
            <div class="dates">起投金额：</div>
            <div class="big_input">
                <input class="input" type="text" name="money" value="{$data['money']}" />
            </div>
            <div class="big_center"></div>
            <div class="big_name">
                万
            </div>
        </div>

        <div class="form-group">
            <div class="label">
              <label></label>
            </div>
            <div class="field">
              <button class="button bg-main icon-check-square-o" type="submit"> 修改</button>
            </div>
        </div>

    </form>
  </div>
</div>
</body>

</html>

<script type="text/javascript" src="__PUBLIC__/bootstrap/js/jquery.validation/1.14.0/jquery.validate.min.js"></script>
<script type="text/javascript" src="__PUBLIC__/bootstrap/js/jquery.validation/1.14.0/validate-methods.js"></script>
<script type="text/javascript" src="__PUBLIC__/bootstrap/js/jquery.validation/1.14.0/messages_zh.min.js"></script>
<link rel="stylesheet" href="__PUBLIC__/bootstrap/js/jquery.validation/1.14.0/validation.css">
<script type="text/javascript">
$("form[name=form11]").validate({
    rules:{
        product:{
            required:true,
        },
        dates:{
            required:true,
        },
        earnings:{
            required:true,
        },
        money:{
            required:true,
            digits:true,
            
        }
       
    },
    messages:{
        product:{
            required:"产品不能为空",
        },
        dates:{
            required:"期限不能为空",
        },
        earnings:{
            required: "收益不能为空",
        },
        money:{
            required:"金额不能为空",
            digits:"必须输入整数",
        }
        
    }
});
</script>